<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"  
      xmlns:f="http://java.sun.com/jsf/core"  
      xmlns:p="http://primefaces.org/ui">
    <h:head>
        <title>Cadastro de Usuário</title>
    </h:head>
    <h:body>
        <h:form>
        <h:inputHidden value="#{usuarioBean.usuario.id}"/>
        <h:panelGrid columns="2">
            <p:outputLabel for="login" value="Login:" />  
            <p:inputText id="login" required="true" 
                    requiredMessage="Campo Login Obrigatório"
                    value="#{usuarioBean.usuario.login}"/> 
            <p:outputLabel for="senha" value="Senha:" />  
            <p:password id="senha"
                        value="#{usuarioBean.usuario.senha}"  
                        feedback="true" required="true"/> 
            <p:outputLabel for="confirmaSenha" value="Confirma Senha:" />  
            <p:password id="confirmaSenha"
                        value="#{usuarioBean.confirmaSenha}"  feedback="true" required="true"
                        /> 
        </h:panelGrid>
        <p:commandButton id="saveButton" value="Salvar" 
                         action="#{usuarioBean.salvar}"/> 
        </h:form>
    </h:body>
</html>
